home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / vecmain.cpp < prev    next >
C/C++ Source or Header  |  1995-01-14  |  2KB  |  51 lines

  1. #include <alloc.h>      // The example of simple graphics editor interface
  2. #include <iostream.h>   // creation. The program shows linemenu with
  3. #include <conio.h>    // Paint Brush like choices: File, Edit, View etc.,
  4.             // Help system explains the behavior of package
  5.  
  6. #include "vector.h"
  7.  
  8. extern unsigned _stklen = 16000;
  9.  
  10. void main()
  11.     {
  12.     if(!init_KNOW_HOW(DETECT, 1))
  13.         return;
  14.  
  15.     ///////////////////////////
  16.     rect r_help(5, 5, 70, 25);
  17.     help_object = new HypertextView(r_help, "vector.hlp", "_vec.pcy",
  18.                   FIXED,
  19.                   pScreenSet->sub_interval,
  20.                                   SHOW_BORDER, 10, "VECTOR",
  21.                                   BLUE, YELLOW, 56);
  22.  
  23.     Vector* v = new Vector("vector.pcy", "work.buf");
  24.  
  25.     setfillstyle(SOLID_FILL, getmaxcolor());
  26.     bar(0, 0, getmaxx(), getmaxy());
  27.  
  28.     v->show();
  29.  
  30.     v->exe();      // process the program
  31.  
  32.     delete help_object;
  33.     delete v;
  34.  
  35.     close_KNOW_HOW();
  36.     closegraph();
  37. cout << "\n";
  38. cout << "\n";
  39. cout << "VECTOR Copyright (C) 1992 - 1994 Stepan S Vartanov\n";
  40. cout << "\n";
  41. cout << "This program is SHAREWARE. To get supprot and discount for next\n";
  42. cout << "versions, you should REGISTER. Registration fee is 30$ USA. \n\n";
  43. cout << "Send money to: \n";
  44. cout << "   P.O.Box 34041, Scotia Square RPO, Halifax, N.S.,\n";
  45. cout << "   Canada. B3J 3S1.\n";
  46. cout << "and add registration card:\n";
  47. cout << "   Full name; Address or (better) E.mail; Program name and version.\n\n";
  48. cout << "Support: ad398@cfn.cs.dal.ca, Stepan Vartanov.\n";
  49.     }
  50.  
  51.